package com.ifast.asset.domain;


import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "assets")
public class Assets implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资产id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资产标签
     */
    private String label;

    /**
     * 资产ip
     */
    private String ip;

    /**
     * 资产mac地址
     */
    private String mac;

    /**
     * 资产名称
     */
    @TableField("assetsName")
    private String assetsName;

    /**
     * 资产类型
     */
    @TableField("assetsType")
    private String assetsType;

    /**
     * 资产型号
     */
    private String model;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 端口及服务以json形式保存
     */
    private String port;

    private String risk;

    /**
     * 所属部门
     */
    private String department;

    /**
     * 供应商
     */
    private String provide;

    /**
     * 维保信息
     */
    private String maintain;

    /**
     * 等保等级
     */
    private String level;

    /**
     * 更新时间
     */
    private String time;

    /**
     * 资产来源
     */
    private String source;


    private double score;

    private String username;

    private String password;

    private int isweak;

}
